package cn.iocoder.yudao.module.iot.controller.app.scene.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "用户 APP - 场景更新 Request VO")
@Data
public class IotSceneUpdateReqVO {

    @Schema(description = "场景ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "场景ID不能为空")
    private Long id;

    @Schema(description = "场景名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "回家模式")
    @NotEmpty(message = "场景名称不能为空")
    private String name;

    @Schema(description = "场景描述", example = "回家时自动开启客厅灯光和空调")
    private String description;

    @Schema(description = "状态 1启用 0禁用", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "条件列表")
    private List<IotSceneConditionCreateReqVO> conditions;

    @Schema(description = "动作列表")
    private List<IotSceneActionCreateReqVO> actions;

}
